package bby.app.fettool;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Config {
    static final String LOG_FILE="./加密文件传输/log.dat";
    static final String KEY_FILE="./加密文件传输/keyPair.dat";
    static final String RECV_DIR="./加密文件传输/recv/";
    static final String ENCODE_DIR="./加密文件传输/enfiles/";
    static final String DECODE_DIR="./加密文件传输/defiles/";
    static final String RECV_LIST_FILE="./加密文件传输/recv_list.dat";
    public static String getHost(){
        try {
            InetAddress addr = InetAddress.getLocalHost();
            return addr.getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
            return "127.0.0.1";
        }

    }
}
